

<label class="btn-select">
<select style="visibility:hidden; width:0; height:0" id="<?php echo $id;?>" name="<?php echo $name;?>[]" data-value="<?php echo $value?>" multiple="multiple">
<?php

$value = explode(',', $value);

$param['options'] = isset($param['options']) ? (is_array($param['options']) ? $param['options'] : explode(PHP_EOL, $param['options'])) : [];

foreach($param['options'] as $k=>$v){
	$selected = in_array($v['key'], $value) ? ' selected' : '';
?>
<option value="<?php echo $v['key']?>"<?php echo $selected?>><?php echo $v['value']?></option>
<?php
}
?>
</select>
</label>
<span class="validate-error" id="validate-error-<?php echo $id?>"></span>
